Executing an instruction step-by step
This is the final step. The result from the ALU is fed back to the write port input
of the register file. The write address is 00000010 (corresponding to r2) which is
supplied by the instruction memory.
This is the final step.
The PC and register files are clocked. The contents of the PC change to the next
value ready to fetch and execute a new instruction. The result from this current
instruction, the new value or r2, is latched into the register file.